package cn.wolfcode.service;

import cn.wolfcode.domain.Announcement;
import cn.wolfcode.qo.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IAnnouncementService {
    void save(Announcement announcement);
    void delete(Long id);
    void update(Announcement announcement);
    Announcement get(Long id);
    List<Announcement> listAll();
    // 分页查询的方法
    PageInfo<Announcement> query(QueryObject qo);

    void changeStatus(Long eId, Long aId);

    Announcement getOneById(Long aId);

    boolean getStatus(Long eId, Long aId);

    void changeIStatus(Long id,boolean status);

    List<Announcement> selectNoRead(Long id);

    int getCount(Long id);
}
